<?php
if($dataList){
?>
<div style="padding:0;border-bottom:1px solid #e6e6e6;margin:0;">
    <div style="height:20px; overflow:hidden;color:#ffffff">.</div>
    <dl style="padding:0;margin:0;">
        <dt style="font-size:16px;font-weight:bold;color:#333">校内职务</dt>
        <dd style="margin:0 0 10px  25px;padding:0;">
            <?foreach($dataList as $data){?>
            <table style="border:none;border-collapse:collapse;border-spacing:0; vertical-align:top; table-layout:fixed;">
                        <colgroup><col width="70">
                        <col width="550">
                        </colgroup><tbody><tr>
                            <td height="8" colspan="2"></td>
                        </tr>
                        <tr><?
                            $endDateStr = $data['to_now'] ? ' 至今' : ' 至 ' .$data['to_year'] . '-' .$data['to_month'];
                            ?>
                        <td style="font-size:14px;font-weight:bold;color:#3d990f;" colspan="2">
                         <?=$data['from_year'] . '-' .$data['from_month'] .$endDateStr ?>
                         <?=$data['title']?>  <?=$data['school']?></td>
                        </tr>
                        <tr>
                            <td height="1" colspan="2"></td>
                        </tr>
                            <tr>
                                <td style="line-height:18px; height:18px;text-align:left; vertical-align:top;font-size:12px; white-space:nowrap;">职责描述：</td>
                                <td style="line-height:18px; height:18px;text-align:left; vertical-align:top;font-size:12px;"><?=nl2br($data['intro'])?></td>
                            </tr>
                    </tbody>
            </table>
            <?}?>
        </dd>
    </dl>
</div>

<?}?>